import { EncodeRulesService } from 'src/app/@core/services/encoderRule/encode-rules.service';
import { Component, Input } from '@angular/core';
import { SettlementMethod } from 'src/app/@core/data/customer';

@Component({
  selector: 'app-add-settlement-methed',
  templateUrl: './add-settlement-methed.component.html',
  styleUrls: ['./add-settlement-methed.component.scss']
})
export class AddSettlementMethedComponent {
  @Input() data: any
  form: SettlementMethod = {
    settlementMethodId: 0,
    settlementMethodNum: '',
    settlementMethodName: '',
    isDefault: false,
    isEnable: true,
  }
  constructor(private EncodeRulesService: EncodeRulesService) { }
  ngOnInit(): void {
    this.EncodeRulesService.GenerateWarehouseCodeRule('结算方式','结算方式').subscribe(
      (data: any) => {
        this.form.settlementMethodNum = data;
      }
    )
  }
}
